package com.mcxx.modules.miniSalvation.family.dao.write;

import com.mcxx.modules.miniSalvation.family.entity.FamilyMemberHistoryEntity;
import org.apache.ibatis.annotations.Param;

import java.util.List;

public interface FamilyMemberHistoryWriteDAO {


	int insertIgnoreNull(FamilyMemberHistoryEntity familyMemberHistory);


	int delete(FamilyMemberHistoryEntity familyMemberHistory);

	Boolean deleteByOrderId(@Param("orderId")String orderId);

	Boolean updateMemberRelationNo(@Param("familyId")String familyId, @Param("salvationNo")String salvationNo);

	int insertMemberHistoryEntities(List<FamilyMemberHistoryEntity> familyMemberHistoryEntities);


    int copyHistoryRecordByOrderId(@Param("orderId") String orderId,@Param("newOrderId") String newOrderId);


    int copyHistoryByOrderId(@Param("orderId") String orderId,@Param("newOrderId") String newOrderId);


	int batchDeleteByOrderId(List<String> orderIdList);

	int updateMemberName(@Param("name")String name, @Param("orderId")String orderId, @Param("memberId")String memberId);

}
